import Layout from '@/layout'

const router = {
    path: '/system',
    component: Layout,
    redirect: 'noRedirect',
    name: '系统管理',
    meta: { title: '系统管理', icon: 'list', roles: ['system'] },
    children: [{
            path: 'user',
            redirect: '/system/user/list',
            name: '用户管理入口',
            component: () =>
                import ('@/views/system/user/index'),
            meta: { menusMode: 3, title: '用户管理', icon: 'item', activeMenu: '/system/user', roles: ['用户管理'] },
            children: [{
                path: 'list',
                component: () =>
                    import ('@/views/system/user/list/index'),
                name: '用户管理',
                meta: { menusMode: 3, title: '用户管理', activeMenu: '/system/user', breadcrumb: false },
                hidden: true
            }]
        },
        {
            path: 'roles',
            redirect: '/system/roles/list',
            name: '角色管理1',
            component: () =>
                import ('@/views/system/roles/index'),
            meta: { menusMode: 3, title: '角色管理', icon: 'item', activeMenu: '/system/roles', roles: ['角色管理'] },
            children: [{
                path: 'list',
                component: () =>
                    import ('@/views/system/roles/list/index'),
                name: '角色管理2',
                meta: { menusMode: 3, title: '角色管理', activeMenu: '/system/roles', breadcrumb: false },
                hidden: true
            }]
        },
        {
            path: 'jigou',
            redirect: '/system/jigou/list',
            name: '机构管理1',
            component: () =>
                import ('@/views/system/jigou/index'),
            meta: { menusMode: 3, title: '机构管理', icon: 'item', activeMenu: '/system/jigou', roles: ['机构管理'] },
            children: [{
                path: 'list',
                component: () =>
                    import ('@/views/system/jigou/list/index'),
                name: '机构管理2',
                meta: { menusMode: 3, title: '机构管理', activeMenu: '/system/jigou', breadcrumb: false },
                hidden: true
            }]
        },
        {
            path: 'menus',
            redirect: '/system/menus/list',
            name: '菜单管理1',
            component: () =>
                import ('@/views/system/menus/index'),
            meta: { menusMode: 3, title: '菜单管理', icon: 'item', activeMenu: '/system/menus', roles: ['菜单管理'] },
            children: [{
                path: 'list',
                component: () =>
                    import ('@/views/system/menus/list/index'),
                name: '菜单管理2',
                meta: { menusMode: 3, title: '菜单管理', activeMenu: '/system/menus', breadcrumb: false },
                hidden: true
            }]
        },
        {
            path: 'dictionary',
            redirect: '/system/dictionary/list',
            name: '字典管理1',
            component: () =>
                import ('@/views/system/dictionary/index'),
            meta: { menusMode: 3, title: '字典管理', icon: 'item', activeMenu: '/system/dictionary', roles: ['字典管理'] },
            children: [{
                path: 'list',
                component: () =>
                    import ('@/views/system/dictionary/list/index'),
                name: '字典管理2',
                meta: { menusMode: 3, title: '字典管理', activeMenu: '/system/dictionary', breadcrumb: false },
                hidden: true
            }]
        },
        {
            path: 'logManage',
            redirect: '/system/logManage/list',
            name: '日志管理1',
            component: () =>
                import ('@/views/system/log/index'),
            meta: { menusMode: 3, title: '日志管理', icon: 'item', activeMenu: '/system/logManage', roles: ['日志管理'] },
            children: [{
                path: 'list',
                component: () =>
                    import ('@/views/system/log/list/index'),
                name: '日志管理2',
                meta: { menusMode: 3, title: '日志管理', activeMenu: '/system/logManage', breadcrumb: false },
                hidden: true
            }]
        },
        {
            path: 'terminalManage',
            redirect: '/system/terminalManage/list',
            name: '终端管理1',
            component: () =>
                import ('@/views/system/terminal/index'),
            meta: { menusMode: 3, title: '终端管理', icon: 'item', activeMenu: '/system/terminalManage', roles: ['终端管理'] },
            children: [{
                path: 'list',
                component: () =>
                    import ('@/views/system/terminal/list/index'),
                name: '终端管理2',
                meta: { menusMode: 3, title: '终端管理', activeMenu: '/system/terminalManage', breadcrumb: false },
                hidden: true
            }]
        }
    ]
}
export default router